part of 'rincos_cubit.dart';

sealed class RincosState extends Equatable {
  const RincosState();
}

final class RincosInitial extends RincosState {
  @override
  List<Object> get props => [];
}

// 刷新页面
final class RincosRefreshing extends RincosState {
  // 时间戳
  final dynamic timestamp;
  const RincosRefreshing({required this.timestamp});
  @override
  List<Object> get props => [timestamp];
}

final class RincosDataLoading extends RincosState {
  @override
  List<Object> get props => [];
}

final class RincosDataSuccessState extends RincosState {
  final List<RincosBean> rincosData;
  const RincosDataSuccessState({required this.rincosData});
  @override
  List<Object> get props => [rincosData];
}

final class RincosDataFailureState extends RincosState {
  final String message;
  RincosDataFailureState({required this.message});
  @override
  List<Object> get props => [message];
}

final class RincosDeleteLoading extends RincosState {
  String rincosId;
  RincosDeleteLoading({required this.rincosId});
  @override
  List<Object> get props => [rincosId];
}

final class RincosDeleteSuccessState extends RincosState {
  String rincosId;
  RincosDeleteSuccessState({required this.rincosId});
  @override
  List<Object> get props => [rincosId];
}

final class RincosDeleteFailureState extends RincosState {
  String message;
  String rincosId;

  RincosDeleteFailureState({required this.message, required this.rincosId});

  @override
  List<Object> get props => [message, rincosId];
}

final class RincosSaveLoading extends RincosState {
  RincosSaveLoading();
  @override
  List<Object> get props => [];
}

final class RincosSaveSuccessState extends RincosState {
  final List<RincosBean> rincosData;

  RincosSaveSuccessState({required this.rincosData});
  @override
  List<Object> get props => [rincosData];
}

